package com.weixinli.biz.impl;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.weixinli.beans.DetailInfo;
import com.weixinli.biz.IDetailInfoBiz;
import com.weixinli.dao.IDetailInfoDao;

@Scope("prototype")
@Service("iDetailInfoBiz")
public class DetailInfoBizImpl implements IDetailInfoBiz{
	private IDetailInfoDao detailInfoDao;

	public int addDetailInfo(DetailInfo detailInfo){
		return detailInfoDao.addDetailInfo(detailInfo);
	}

	public int modDetailInfo(DetailInfo di) {
		return detailInfoDao.modDetailInfo(di);
	}

	public int delDetailInfo(Integer did) {
		return 0;
	}

	public DetailInfo getOneDeInfo(Integer w_uid) {
		return detailInfoDao.getOneDeInfo(w_uid);
	}
	@Resource(name="iDetailInfoDao")
	public void setDetailInfoDao(IDetailInfoDao detailInfoDao) {
		this.detailInfoDao = detailInfoDao;
	}

	
}
